#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :my_get.py
# @Time      :2023/10/19 
# @Author    :CL
# @email     :1037654919@qq.com
import requests
headers = {
    "authority": "datasets-server.huggingface.co",
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9",
    "authorization": "Bearer jwt:eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJpYXQiOjE2OTc2OTY1NDUsInN1YiI6ImRhdGFzZXRzL3dhbm5nL2xhaW9uLWhpZ2gtcmVzb2x1dGlvbi1jaGluZXNlIiwiZXhwIjoxNjk3Njk2NzI1LCJpc3MiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvIn0.KMYf67agBVfnk2mLWFLopr13NVAi4Bu-aQEZkfu7ejBxacWJoGU6a8c_tsx7mdXi9xVRgOs-4d2MlcEyY4HrAg",
    "cache-control": "no-cache",
    "origin": "https://huggingface.co",
    "pragma": "no-cache",
    "referer": "https://huggingface.co/datasets/wanng/laion-high-resolution-chinese/viewer/default/train?p=2",
    "sec-ch-ua": "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Linux\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
}
cookies = {
    "__stripe_mid": "e0b77284-b1ae-4576-8f32-a09cbd0c2e7447d809",
    "_ga": "GA1.1.1717933824.1694677947",
    "__stripe_sid": "36ab759b-6b2c-4221-a3f5-a69d0c25ad08757de6",
    "_ga_8Q63TH4CSL": "GS1.1.1697679921.2.1.1697681246.60.0.0",
    "aws-waf-token": "fc77edbf-7de2-49c8-b0ce-b099b6b325fd:EwoAw7IQod0AAAAA:UoftFBdySVRFz1PM31q8YOLsF8bwlaq2Vt9Gog016UC7YgeJY7S7EPaSMkldDFg4ks57Ie/Gdn5xis+FCMiU1yxvFbFi1fKSMajBFi4VgMv3wsZ3OZJcQglf6bJb0Xm+zZ1Lm/eeNSQwK+7XCWiZOqkbRU1ayIm6GMJ9az0W8oag350xT4WcEZCCkF4XiWagBb1s4c2llrWnJuti9KViuV5quGQ4mdjvTfz0+cl1eOyCihl8pNRo"
}
proxies ={'http':'127.0.0.1:15732',
          'https':'127.0.0.1:15732'}
def my_get(url,params):
    return requests.get(url = url,headers=headers,cookies =cookies,proxies=proxies, params=params)